package org.jeecg.modules.my.zhisk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.my.zhisk.entity.ZhiskWenz;
import org.jeecg.modules.my.zhisk.mapper.ZhiskWenzMapper;
import org.jeecg.modules.my.zhisk.service.IZhiskWenzService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 知识库文章
 * @Author: jeecg-boot
 * @Date:   2021-08-21
 * @Version: V1.0
 */
@Service
public class ZhiskWenzServiceImpl extends ServiceImpl<ZhiskWenzMapper, ZhiskWenz> implements IZhiskWenzService {
	@Autowired
	private ZhiskWenzMapper zhiskWenzMapper;
	
	@Override
	public List<ZhiskWenz> selectByMainId(String mainId) {
		return zhiskWenzMapper.selectByMainId(mainId);
	}

	@Override
	public ZhiskWenz selectByMainId2(String mainId) {
		return zhiskWenzMapper.selectOne(new QueryWrapper<ZhiskWenz>().eq("zhub_id", mainId));
	}
}
